﻿using System.IO;
using System.Web.Hosting;

namespace Kazuku.Core.Models {
	public class DynamicTemplateVirtualFile : VirtualFile {
		private byte[] data;

		public DynamicTemplateVirtualFile(string virtualPath, byte[] data)
			: base(virtualPath) {
			this.data = data;
		}
	 
		public override System.IO.Stream Open() {
			return new MemoryStream(data);
		}
	}
}
